package com.lijianlove.keeplearning.dr.support.log.event;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author lijian
 * @date 2019/5/1 上午12:59
 */
@Data
@Accessors(chain = true)
public class DREvent implements Serializable {
    private String msg;
    private long time;
    private EventType eventType;

    public enum EventType {
        /**
         * timed map task inited
         */
        REGISTER_INITED,
        /**
         * timed map task waiting
         */
        REGISTER_WAITING,
        /**
         * timed map task restarted
         */
        REGISTER_RESTARTED,
        /**
         * processor starting
         */
        PROCESSOR_STARTING,
        /**
         * processor rejected
         */
        PROCESSOR_REJECTED,
        /**
         * processor finished
         */
        PROCESSOR_FINISHED,
        /**
         * processor err rejected
         */
        PROCESSOR_ERR_REJECTED,
        /**
         * processor skiped
         */
        PROCESSOR_SKIPED
    }
}
